package entity

import ()

type UpgradeRecord struct {
	Id int64 `gorm:"column:id;type:BIGINT;primary_key" json:"id"`

	FirmwareId int64 `gorm:"column:firmware_id;type:BIGINT" json:"firmware_id"`

	FirmwaresName string `gorm:"column:firmwares_name;type:VARCHAR(255)" json:"firmwares_name"`

	Version string `gorm:"column:version;type:VARCHAR(255)" json:"version"`

	TacticsId int64 `gorm:"column:tactics_id;type:BIGINT" json:"tactics_id"`

	SnCode string `gorm:"column:sn_code;type:VARCHAR(255)" json:"sn_code"`

	Status int `gorm:"column:status;type:TINYINT" json:"status"`

	Desc string `gorm:"column:desc;type:VARCHAR(255)" json:"desc"`

	CreatedAt int64 `gorm:"column:created_at;type:BIGINT" json:"created_at"`

	UpdatedAt int64 `gorm:"column:updated_at;type:BIGINT" json:"updated_at"`
}

func (a *UpgradeRecord) TableName() string {
	return "upgrade_records"
}
